package cn.cdeden.knowledge.service;

import cn.cdeden.common.core.utils.page.TableDataInfo;
import cn.cdeden.knowledge.domain.FilesCollection;
import cn.cdeden.knowledge.domain.dto.FilesCollectionDto;
import cn.cdeden.knowledge.domain.dto.FilesCollectionQueryParam;
import cn.cdeden.knowledge.domain.dto.FilesTree;
import com.baomidou.mybatisplus.extension.service.IService;
import io.undertow.util.BadRequestException;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface FilesCollectionService extends IService<FilesCollection>{

    void deleteLibTaggedData(String type, List<String> treeNodeIds);

    int insert(FilesCollectionDto resources) throws BadRequestException;

    int removeByMap(FilesCollectionDto resources);


    /**
     * 查询数据分页
     * @param query 条件
     * @param pageable 分页参数
     * @return PageInfo<FilesCollectionDto>
     */
    TableDataInfo<FilesTree> queryAll(FilesCollectionQueryParam query, Pageable pageable);
}
